from rest_framework.serializers import ModelSerializer
from meiduo01.models import *  #导入子应用meiduo01里的模型层
from rest_framework import serializers # 普通序列化器

# 分类
class CateSer(ModelSerializer):
    class Meta:
        model = Category
        fields='__all__'

class  GoodsSer(ModelSerializer):
    class Meta:
        model = Goods
        fields='__all__'